<?php /* @var $this Controller */ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title><?php echo CHtml::encode($this->pageTitle); ?></title>
<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/static/css/common.css">
<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/static/css/main.css">
<script src="<?php echo Yii::app()->request->baseUrl; ?>/static/js/jquery.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/static/js/artdialog/jquery.artDialog.js?skin=default"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/static/js/artdialog/plugins/iframeTools.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/static/js/main.js"></script>
</head>

<body>
    <div id="header">
        <div id="site-top" class="clearfix">
            <h1 class="pull-left"><a href="<?php echo Yii::app()->request->baseUrl; ?>/" title="爱兼职，爱生活">爱兼职，爱生活</a></h1>

            <ul id="site-info">
                <li><i class="icon-envelope icon-white"></i><a href="">邮件订阅</a></li>
                <li><i class="icon-star icon-white"></i><a href="">加入收藏夹</a></li>
                <li><i class="icon-user icon-white"></i><a href="">邀请好友</a></li>
                <li><i class="icon-question-sign icon-white"></i><a href="">常见问题</a></li>
            </ul>

            <div id="site-search">
                <input type="text" name="keyword" placeholder="请输入搜索关键字" />
                <button type="button">&nbsp;&nbsp;&nbsp;搜 索&nbsp;&nbsp;&nbsp;</button>
            </div>
        </div>

        <div id="site-nav">
            <div id="site-nav-warpper" class="clearfix">
                <ul class="nav pull-left">
                    <li class="current"><a href="<?php echo Yii::app()->request->baseUrl; ?>/" title="爱兼职，爱生活">首页</a></li>
                    <li><a href="">找兼职</a></li>
                    <li><a href="">找人才</a></li>
                    <li><a href="">地图兼职</a></li>
                    <li><a href="">举报处理</a></li>
                    <li><a href="">手机版</a></li>
                </ul>
                <ul class="user-info pull-right">
                    <?php if (Yii::app()->user->isGuest === FALSE):?>
                    <li class="user-info-name"><a href="">Hi, <?php echo Yii::app()->user->username; ?></a></li>
                    <?php endif;?>

                    <li>
                        <a href="" id="label-history-visit">最近浏览</a>
                    </li>

                    <li>
                        <a href="<?php echo $this->createUrl('user/index'); ?>" id="label-user-info">个人中心</a>
                    </li>

                    <?php if (Yii::app()->user->isGuest === TRUE):?>
                    <li><a href="<?php echo $this->createUrl('site/login'); ?>" id="login-link">登录</a></li>
                    <?php else:?>
                    <li><a href="<?php echo $this->createUrl('site/logout'); ?>">退出</a></li>
                    <?php endif;?>
                </ul>
            </div>
        </div>
    </div>

    <div id="main"><?php echo $content;?></div>

    <div id="footer"></div>

    <script type="text/javascript">
    </script>
</body>
</html>
